<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>测试</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	 <link href="<%=basePath%>bbs/testJs/jquery-wijmo.css" rel="stylesheet" type="text/css" />
    
    <link href="<%=basePath%>bbs/testJs/jquery.wijmo.wijdialog.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath%>bbs/testJs/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>bbs/testJs/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>bbs/testJs/jquery.wijmo.wijutil.js" type="text/javascript"></script>
    <script src="<%=basePath%>bbs/testJs/jquery.wijmo.wijdialog.js" type="text/javascript"></script>
     <script id="scriptInit" type="text/javascript">
        $(document).ready(function () {
            $(":wijmo-wijdialog").wijdialog("destroy").remove();
            $('#dialog').wijdialog({
                autoOpen: false,
                show: 'blind',
                hide: 'explode',
                collapsingAnimation: { animated: "puff", duration: 300, easing: "easeOutExpo" },
                expandingAnimation: { animated: "highlight", duration: 300, easing: "easeOutExpo" },
                width: 500
            });

            $('#expandEffectTypes').change(function () {
                var ee = $("#expandEffectTypes option:selected").val();
                $("#dialog").wijdialog("option", "expandingAnimation", { effect: ee, duration: 500 });
            });

            $('#collapseEffectTypes').change(function () {
                var ce = $("#collapseEffectTypes option:selected").val();
                $("#dialog").wijdialog("option", "collapsingAnimation", { effect: ce, duration: 500 });
            })

            $('#showEffectTypes').change(function () {
                var ee = $("#showEffectTypes option:selected").val();
                $("#dialog").wijdialog("option", "show", ee);
            });

            $('#hideEffectTypes').change(function () {
                var ce = $("#hideEffectTypes option:selected").val();
                $("#dialog").wijdialog("option", "hide", ce);
            })
        });
    </script>
  </head>
  
  <body>
     <div class="main demo">
            <!-- Begin demo markup -->
            <div>
                <input type="button" id="showDialog" value="Show Dialog" onclick="$('#dialog').wijdialog('open')" />
                
                <div id="dialog" title="Basic dialog">
                    <p>
                        This is the default dialog which is useful for displaying information. The dialog
                        window can be moved, resized and closed with the 'x' icon.</p>
                </div>
            </div>
           
            </div>
  </body>
</html>
